<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=>false,
)); ?>


    <dd>
	   <div class="dd_left"><?php echo $form->labelEx($model,'first_name'); ?></div>
	   <div class="dd_right"><?php echo $form->textField($model,'first_name',array('size'=>60,'maxlength'=>255)); ?></div>
       <div class="errorbox"><?php echo $form->error($model,'first_name'); ?></div>
	</dd>
        
    <dd>
	   <div class="dd_left"><?php echo $form->labelEx($model,'last_name'); ?></div>
	   <div class="dd_right"><?php echo $form->textField($model,'last_name',array('size'=>60,'maxlength'=>255)); ?></div>
       <div class="errorbox"><?php echo $form->error($model,'last_name'); ?></div>
	</dd>
        
    <dd>
	   <div class="dd_left"><?php echo $form->labelEx($model,'username'); ?></div>
	   <div class="dd_right"><?php echo $form->textField($model,'username',array('size'=>60,'maxlength'=>255)); ?></div>
       <div class="errorbox"><?php echo $form->error($model,'username'); ?></div>
	</dd>
        

    <dd>
	   <div class="dd_left"><?php echo $form->labelEx($model,'password'); ?></div>
	   <div class="dd_right"><?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>255)); ?></div>
       <div class="errorbox"><?php echo $form->error($model,'password'); ?></div>
	</dd>
        
    <dd>
	   <div class="dd_left"><?php echo $form->labelEx($model,'email'); ?></div>
	   <div class="dd_right"><?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>255)); ?></div>
       <div class="errorbox"><?php echo $form->error($model,'email'); ?></div>
	</dd>
        
    <dd>
	   <div class="dd_left"><?php echo $form->labelEx($model,'phone_number'); ?></div>
	   <div class="dd_right"><?php echo $form->textField($model,'phone_number',array('size'=>60,'maxlength'=>255)); ?></div>
       <div class="errorbox"><?php echo $form->error($model,'phone_number'); ?></div>
	</dd>
        
    
    <dd>
	   <div class="dd_left"><?php echo $form->labelEx($model,'is_active'); ?></div>
	   <div class="dd_right"><?php echo $form->checkBox($model,'is_active', array('value'=>1, 'uncheckValue'=>0,'style'=>'margin-left:30px;float:left;width:20px;;'));  ?></div>
	    <div class="errorbox"><?php echo $form->error($model,'is_active'); ?></div>
    </dd>
       
    <dd>
	   <div class="dd_left"><?php echo $form->labelEx($model,'application_id'); ?></div>
	   <div class="dd_right"><?php echo $form->dropDownList($model, 'application_id',CHtml::listData(Application::model()->findAll(), 'id', 'name')); ?></div>
	   <div class="errorbox"><?php echo $form->error($model,'application_id'); ?></div>
    </dd>
        
    <dd>
	   <div class="dd_left"><?php echo $form->labelEx($model,'user_roles_id'); ?></div>
	   <div class="dd_right"><?php echo  $form->dropDownList($model, 'user_roles_id',CHtml::listData(UserRole::model()->findAll(), 'id', 'name')); ?></div>
	   <div class="errorbox"><?php echo $form->error($model,'user_roles_id'); ?></div>
    </dd>
        
	<div class="button_section"></div>
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class'=>'save')); ?>
	

<?php $this->endWidget(); ?>

</div><!-- form -->